package com.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author CDHong.it
 * @since 2023-06-27
 */
@Getter
@Setter
@TableName("tbl_menu")
public class Menu implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "menu_id", type = IdType.AUTO)
    private Integer menuId;

    private String menuName;

    private String menuCode;

    private String url;

    /**
     * 1目录，2页面，3按钮，4链接
     */
    private Integer type;

    private Integer parentId;

    /**
     * 0启用，1禁用
     */
    private Integer state;

    private LocalDateTime createTime;

    private List<Menu> children = new ArrayList<>();


}
